#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdlib.h>


struct stack
{
	int* a;
	int top;
	int capacity;
};
void StackInit(struct stack* ptr, int defaultcapacity = 40);